doc: fix platform-specific definitions section
authorwhitequark <whitequark@whitequark.org>
Sat, 20 Aug 2016 17:41:37 +0000 (17:41 +0000)
committerGitHub <noreply@github.com>
Sat, 20 Aug 2016 17:41:37 +0000 (17:41 +0000)
Right now the section seems to imply that using cfg(target_pointer_width = "32")
is an acceptable way to detect whether the crate is built for x86.

src/doc/specifying-dependencies.md

index f78d667ee92eed2d3a07b0c4510b6ef2425e5580..15873c310c89af5ec007af40baf61ea296e56ed1 100644 (file)
@@ -307,10 +307,10 @@ winhttp = "0.4.0"
 [target.'cfg(unix)'.dependencies]
 openssl = "1.0.1"
 
-[target.'cfg(target_pointer_width = "32")'.dependencies]
+[target.'cfg(target_arch = "x86)'.dependencies]
 native = { path = "native/i686" }
 
-[target.'cfg(target_pointer_width = "64")'.dependencies]
+[target.'cfg(target_arch = "x86_64")'.dependencies]
 native = { path = "native/x86_64" }
 ```